import React from 'react'
const baseUrl = '/user/api/b'

// 知识库内容列表
export async function knowledgePage(params) {
  return await React.$postJson(baseUrl + '/knowledgeInfo/page', params);
}
// 新建知识库内容
export async function knowledgeAdd(params) {
  return await React.$postJson(baseUrl + '/knowledgeInfo/add', params);
}
// 修改知识库内容
export async function knowledgeEdit(params) {
  return await React.$postJson(baseUrl + '/knowledgeInfo/edit', params);
}
// 查看知识库内容
export async function knowledgeView(params) {
  return await React.$get(baseUrl + '/knowledgeInfo/one', params);
}
// 启用/停用知识库 单个/批量
export async function knowledgeStatus(params) {
  return await React.$postJson(baseUrl + '/knowledgeInfo/del', params);
}
//知识库列表tree
export async function knowledgeClassifyTree(params) {
  return await React.$get(baseUrl + '/knowledgeClassify/tree', params);
}
//知识库列表查询操作日志
export async function getOperationLog(params) {
  return await React.$postJson(baseUrl + '/petDynamic/getOperationLog', params);
}